package com.shunda.ysdgj.model.entity.order;

import com.baomidou.mybatisplus.annotation.TableName;
import com.shunda.ysdgj.model.entity.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("ysdgj_order")
@Schema(description = "订单")
public class Order extends BaseEntity {
    @Schema(description = "客户ID")
    private Long customerId;

    @Schema(description = "优惠券ID")
    private Long voucherId;

    @Schema(description = "订单编号")
    private Long orderCode;

    @Schema(description = "订单状态 0未付款 1待发货 2待收货 3已完成 9已取消 10已超时")
    private Integer orderStatus;

    @Schema(description = "付款方式 1余额 2借记卡 3信用卡 5支付宝 6微信")
    private Integer orderPayment;

    @Schema(description = "订单总金额")
    private BigDecimal orderAmount;

    @Schema(description = "运费")
    private BigDecimal orderPostage;

    @Schema(description = "付款时间")
    private LocalDateTime orderPaymentTime;
}
